import React, { PureComponent } from 'react'
import { withRouter } from '../../hoc'

export class Detail extends PureComponent {
  render() {
    const { router } = this.props
    const { params } = router
    
    return (
      <div>
        <h3>Detail Page</h3>
        <p>id: {params.id}</p>
      </div>
    )
  }
}

export default withRouter(Detail)
